package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投票详情对象 owner_member_vote
 * 
 * @author ruoyi
 * @date 2021-08-24
 */
public class OwnerMemberVote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 业委会投票记录ID */
    private String id;

    /** 业委会投票ID */
    @Excel(name = "业委会投票ID")
    private String voteId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 选项 */
    @Excel(name = "选项")
    private String option;

    /** 投票时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "投票时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date syncTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setVoteId(String voteId) 
    {
        this.voteId = voteId;
    }

    public String getVoteId() 
    {
        return voteId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOption(String option) 
    {
        this.option = option;
    }

    public String getOption() 
    {
        return option;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("voteId", getVoteId())
            .append("userId", getUserId())
            .append("option", getOption())
            .append("syncTime", getSyncTime())
            .toString();
    }
}
